<template>
  <div class="header">
    <el-button type="info" @click="layout">退出</el-button>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data () {
    return {}
  },
  created () {
  },
  methods: {
    layout () {
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped lang="less">
</style>
